package com.vrv.vap.baseline.service.impl;

import com.vrv.vap.baseline.config.ExcelTemplateConfig;
import com.vrv.vap.baseline.entity.ScheduleTasksConfig;
import com.vrv.vap.baseline.mapper.ScheduleTasksConfigMapper;
import com.vrv.vap.baseline.service.AbstractExcelExportService;
import com.vrv.vap.baseline.util.FileOperationUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;

@Service
public class ScheduleTasksConfigExportService extends AbstractExcelExportService<ScheduleTasksConfig> {
    @Autowired
    private ScheduleTasksConfigMapper scheduleTasksConfigMapper;
    
    public ScheduleTasksConfigExportService(FileOperationUtil fileOperationUtil, ExcelTemplateConfig excelTemplateConfig) {
        super(fileOperationUtil, excelTemplateConfig, "schedule_tasks_config");
    }
    
    @Override
    protected List<ScheduleTasksConfig> getAllData() {
        return scheduleTasksConfigMapper.selectAll();
    }
    
    @Override
    protected void processData(List<ScheduleTasksConfig> dataList, String format) throws IOException {
        // 数据处理逻辑，如果需要的话
    }
    
    @Override
    protected Class<ScheduleTasksConfig> getEntityClass() {
        return ScheduleTasksConfig.class;
    }
}